package com.google.code.irouter.portal.client.dashboard.main.north.menu.switcher;

import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.menu.Menu;
import com.gwtext.client.widgets.menu.event.MenuListenerAdapter;

public final class SolutionsListener extends MenuListenerAdapter {
	
	@Override
	public void doBeforeShow(Menu menu) {
		Solutions solutions = (Solutions) menu;
		solutions.refresh();
    }
	
	@Override
	public void onClick(Menu menu, String menuItemId, EventObject e) {
		if(menuItemId.length() == 0)
			return;
		Solutions solutions = (Solutions) menu;
		solutions.select(menuItemId);
    }
	
}
